package org.summerframework.component.note.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

import javax.validation.constraints.NotBlank;

/**
 * @author 石超
 * @version v1.0.0
 */
@Getter
@Setter
@ConfigurationProperties("note.aliyun")
public class AliyunNoteProperties {
    private String version = "2017-05-25";
    private String action = "SendSms";

    /**
     * 必填:短信签名-可在短信控制台中找到
     **/
    private String regionId = "cn-hangzhou";
    /**
     * 产品域名,开发者无需替换
     **/
    private String domain = "dysmsapi.aliyuncs.com";

    @NotBlank(message = "note.aliyun.access-key-id not null")
    private String accessKeyId;

    @NotBlank(message = "note.aliyun.secret not null")
    private String secret;

}
